package com.kukudexin.demo.util;

import com.jfinal.plugin.activerecord.DbPro;
import com.jfinal.plugin.activerecord.Record;

import java.util.Arrays;
import java.util.List;

/**
 * @author: 德鑫
 * @version:
 * @since: 2021/4/26
 */
public class MyDbPro extends DbPro {
    public MyDbPro(String configName) {
        super(configName);
    }

    public List<Record> find(String sql, Object... paras) {
        System.err.println("Sql: " + sql);
        System.err.println("Paras: " + Arrays.toString(paras));
        return super.find(sql, paras);
    }
}
